package com.wanmait.recruit.mapper;

import com.wanmait.recruit.pojo.CompanyPosition;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CompanyPositionMapper {
    void deleteByPersonId(Integer id);
    List<CompanyPosition> findByCompanyId(Integer companyId);
    List<CompanyPosition> findAll();
    void updateEnable(Integer companyPositionId);
    List<CompanyPosition> findByAdmin(Integer companyId);
    List<CompanyPosition> findByHr(Integer personId,Integer companyId);
    int deleteByPrimaryKey(Integer id);

    int insert(CompanyPosition record);

    int insertSelective(CompanyPosition record);

    CompanyPosition selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CompanyPosition record);

    int updateByPrimaryKey(CompanyPosition record);

    List<CompanyPosition> searchRes(CompanyPosition companyPosition);

    List<CompanyPosition> searchByCompanyOrPosition(@Param("positionOrCompanyName") String positionOrCompanyName, @Param("selectedPosition") String selectedPosition);

    List<CompanyPosition> searchBySomeId(@Param("industryId") Integer industryId, @Param("typeId") Integer typeId, @Param("positionId") Integer positionId);

    List<CompanyPosition> searchByIndustryId(@Param("industryId") Integer industryId);

    List<CompanyPosition> searchByTypeId(@Param("typeId") Integer typeId);

    List<CompanyPosition> searchByPositionId(@Param("positionId") Integer positionId);

}